package com.yingcheng.numerology.framework.bazi.core.enums;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 五行
 *
 * @author xiaofeng
 * @date 2024/11/12 15:41
 */
@Getter
@RequiredArgsConstructor
public enum ElementsEnum implements FieldEnumerable<ElementsEnum> {


    METAL("金", "metal", 1),

    WOOD("木", "wood", 2),

    WATER("水", "water", 3),

    FIRE("火", "fire", 4),

    EARTH("土", "earth", 5);

    /**
     * 名称
     */
    private final String name;

    /**
     * 编码
     */
    private final String code;

    /**
     * 索引
     */
    private final Integer index;

}
